<%-- 
    Document   : employeeViewComp
    Created on : Oct 22, 2013, 1:25:29 PM
    Author     : h10t93
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>employee view complaints!</h1>
        <form name="frm" method="POST">
            <select name="statusComp">
                <option value="1">Not Close</option>
                <option value="2">Close</option>
            </select> 
            <input type="submit" value="View" onclick="frm.action='EmpServlet?action=viewCmpBySt'"/>
            <table border="1">
                <tr>
                    <th>ID</th>
                    <th>Title</th>
                    <th>Categorize</th>
                    <th>Content</th>
                    <th>Date</th>
                </tr>
                <c:forEach var="p" items="${sessionScope['listCompSend']}">
                    <tr>
                        <td>${p.complaintID}</td>
                        <td>${p.title}</td>
                        <td>${p.complaintType}</td>
                        <td>${p.compContent}</td>
                        <td>${p.date}</td>
                    </tr>
                </c:forEach>
            </table>
        </form>
    </body>
</html>
